package at.ac.tuwien.infosys.aic11.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = "duration")
@XmlAccessorType(XmlAccessType.NONE)
public class Duration {
	
	@XmlElement(name="years", required=true)
	private int years;
	

	
	
	public Duration(){}
	public Duration(int years){
			this.years=years;
	}

	
	public int getYears() {
		return years;
	}
	public void setYears(int years) {
		this.years = years;
	}


}
